package com.hotel.model.auto;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2023-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Orders extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单名称
     */
    private String name;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 入住人
     */
    private String checkName;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 入住时间
     */
    private String firstDay;

    /**
     * 离店时间
     */
    private String lastDay;

    /**
     * 入住总天数
     */
    private Integer num;

    /**
     * 房间类型id
     */
    private int roomtypeId;

    /**
     * 房间id
     */
    private String roomId;


    /**
     * 支付宝订单号
     */
    private String alipayNo;

    /**
     * 更新时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;

    /**
     * 总价格
     */
    private BigDecimal total;

    /**
     * 订单状态
     */
    private String state;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


}
